/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.Office;

/**
 * 资产Entity
 * @author wudavid
 * @version 2017-03-09
 */
public class Asset extends DataEntity<Asset> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;        // 名称
	private String spec;		// 规格
	private String type;		// 类型,来自于NC
	private String typeName;    //类型名称,来自于NC
	private String feature;		// 特征
	private String rfid;		// rfid
	private String isParentRfid;//是否存在主RFID,默认为N
	private String parentRfid;		// 主rfid
	private String status;		// 状态
	private ExhHall exhHall;    // 展馆		
	private Office management;   //经管
	private String area;          //区域
	private String pkBrand;       //品牌主键,来自NC
	private String brand;        //品牌,来自NC
	private String model;        //型号		
	private String managerId;    //责任人id
	private String managerName;  //责任人名称
	private String mobile;      //责任人电话
	private String mandeptId;    //管理部门id
	private String mandeptName;  //管理部门名称	
	private String assetType;    //资产类型,分固定资产和非固定资产,0固定资产,1非固定资产	

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getIsParentRfid() {
		return isParentRfid;
	}

	public void setIsParentRfid(String isParentRfid) {
		this.isParentRfid = isParentRfid;
	}

	public String getParentRfid() {
		return parentRfid;
	}

	public void setParentRfid(String parentRfid) {
		this.parentRfid = parentRfid;
	}

	public String getPkBrand() {
		return pkBrand;
	}

	public void setPkBrand(String pkBrand) {
		this.pkBrand = pkBrand;
	}

	public String getAssetType() {
		return assetType;
	}

	public void setAssetType(String assetType) {
		this.assetType = assetType;
	}

	public String getManagerId() {
		return managerId;
	}

	public void setManagerId(String managerId) {
		this.managerId = managerId;
	}

	public String getManagerName() {
		return managerName;
	}

	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}

	public String getMandeptId() {
		return mandeptId;
	}

	public void setMandeptId(String mandeptId) {
		this.mandeptId = mandeptId;
	}

	public String getMandeptName() {
		return mandeptName;
	}

	public void setMandeptName(String mandeptName) {
		this.mandeptName = mandeptName;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Office getManagement() {
		return management;
	}

	public void setManagement(Office management) {
		this.management = management;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ExhHall getExhHall() {
		return exhHall;
	}

	public void setExhHall(ExhHall exhHall) {
		this.exhHall = exhHall;
	}

	public Asset() {
		super();
	}

	public Asset(String id){
		super(id);
	}

	@Length(min=0, max=32, message="编码长度必须介于 0 和 32 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=64, message="规格长度必须介于 0 和 64 之间")
	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}
	
	@Length(min=0, max=64, message="类型长度必须介于 0 和 64 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="特征长度必须介于 0 和 64 之间")
	public String getFeature() {
		return feature;
	}

	public void setFeature(String feature) {
		this.feature = feature;
	}
	
	@Length(min=0, max=64, message="rfid长度必须介于 0 和 64 之间")
	public String getRfid() {
		return rfid;
	}

	public void setRfid(String rfid) {
		this.rfid = rfid;
	}
	
	@Length(min=0, max=2, message="状态长度必须介于 0 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}